package com.lixin.aopdemo2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApplication {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("aop.xml");
        GoodsService goodsService = (GoodsService) context.getBean("goodsService");
        goodsService.select();
    }
}
